package cn.tedu.submarine;

import javax.swing.*;


public class MineSubmarine extends SeaObject implements OwnLife{

    public MineSubmarine() {
        super(63,19);
    }
    public void move() {
        x += speed;
    }

    @Override
    public ImageIcon getImage() {
        return Images.mineSub;
    }
    public Mine shootMine() {
        int x = this.x + this.width;
        int y = this.y - 5;
        return new Mine(x,y);
    }

    @Override
    public int getLife() {
        return 1;
    }
}
